package cn.compose.online.base;

import java.io.Serializable;

/**
 * @author hgm
 * @since
 */
public class Response<T> implements Serializable {
	private static final long serialVersionUID = -1L;
	protected String code;
	protected String message;
	protected T data;

	public Response() {
	}

	public String getCode() {
		return code;
	}

	public String getMessage() {
		return message;
	}

	public T getData() {
		return data;
	}

	public Response<T> setCode(String code) {
		this.code = code;
		return this;
	}

	public Response<T> setMessage(String message) {
		this.message = message;
		return this;
	}

	public Response<T> setData(T data) {
		this.data = data;
		return this;
	}
}
